import request from '@/utils/request'

// 查询文件编辑历史列表
export function listFileEditHistory(query) {
  return request({
    url: '/history/fileEditHistory/list',
    method: 'get',
    params: query
  })
}

// 重新上传 旧文件存入文件历史
export function reUploadHistory(newId, oldId) {
  return request({
    url: '/history/fileEditHistory/reUploadHistory/' + newId + '/' + oldId,
    method: 'get'
  })
}

// 版本还原
export function versionRestoreFile(id) {
  return request({
    url: '/history/fileEditHistory/versionRestoreFile/' + id,
    method: 'get'
  })
}
